//
// Created by 11510 on 2024/6/17.
//
#include <iostream>
using namespace std;

class A{
public:
    void print() const{
        cout << "A::print()" << endl;
    }
    double _a;
};
class B: public A{
public:
    double _b;
};

class C: public A{
public:
    double _c;
};

class D: public B, public C{
public:
    double _d;
    void print() const{
        B::print();
    }
};

void test0(){
    D d;
    d.print();
}

int main(){
    test0();
}
